package com.ztg.analogbrowser.controller;

import com.ztg.analogbrowser.utils.AnalogBrowserGetCookie;
import org.apache.http.client.CookieStore;
import org.openqa.selenium.Cookie;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Set;

@RestController
public class AnalogBrowserController {

    @GetMapping(value = "")
    public String index(String url)throws Exception{
        return "项目成功启动";
    }
    @GetMapping(value = "getCookie")
    public Set<Cookie> getCookie(String url)throws Exception{
        return AnalogBrowserGetCookie.getCookie(url);
    }
}
